import React from 'react'
import { NavLink, useRoutes } from 'react-router-dom'
import './App.css'
import routes from './routes'
export default function App() {
    return (
        <div className="wrapper">
            <ul>
                <li><NavLink to='/addGoods'>添加商品</NavLink></li>
                <li><NavLink to='/goodsList'>商品列表</NavLink></li>
                <li><NavLink to='/carList'>购物车列表</NavLink></li>
            </ul>
            <div>
                {useRoutes(routes)}
            </div>
        </div>
    )
}
